package a.d;

public class t
  extends s
  implements p
{
  public final double d;
  public final double e;
  private w f;
  public static boolean g;
  
  public t()
  {
    super(0.0D, 0.0D);
    this.d = (this.e = 0.0D);
  }
  
  public t(w paramw, s params)
  {
    super(params.a, params.b);
    this.d = paramw.a;
    this.e = paramw.b;
    this.f = paramw;
  }
  
  public t(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    super(paramDouble3, paramDouble4);
    this.d = paramDouble1;
    this.e = paramDouble2;
  }
  
  public double a(t paramt)
  {
    boolean bool2 = w.e;
    boolean bool1 = w.d;
    double d1 = 0.0D;
    w localw1 = new w(d(), e());
    w localw2 = new w(d() + b(), e() + c());
    w localw3 = new w(paramt.d(), paramt.e());
    w localw4 = new w(paramt.d() + paramt.b(), paramt.e() + paramt.c());
    if (!bool2) {
      if (localw2.a() < localw3.a())
      {
        d1 += Math.abs(localw3.a() - localw2.a());
        if (bool2) {
          break label193;
        }
        if (!bool1) {
          break label182;
        }
      }
    }
    if (!bool2) {
      if (localw1.a() > localw4.a()) {
        d1 += Math.abs(localw4.a() - localw1.a());
      }
    }
    label182:
    label193:
    if (!bool2)
    {
      if (localw2.b() < localw3.b())
      {
        if (bool2) {
          break label265;
        }
        d1 += Math.abs(localw3.b() - localw2.b());
        if (!bool1) {}
      }
      else
      {
        if (bool2) {
          break label265;
        }
      }
    }
    else if (localw1.b() > localw4.b()) {
      d1 += Math.abs(localw4.b() - localw1.b());
    }
    label265:
    return d1;
  }
  
  public final double d()
  {
    return this.d;
  }
  
  public final double e()
  {
    return this.e;
  }
  
  public final w f()
  {
    if (!w.e) {
      if (this.f == null) {
        this.f = new w(this.d, this.e);
      }
    }
    return this.f;
  }
  
  public t a()
  {
    return this;
  }
  
  public boolean a(double paramDouble1, double paramDouble2)
  {
    return a(this.d, this.e, this.a, this.b, paramDouble1, paramDouble2, false);
  }
  
  public static boolean a(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4, double paramDouble5, double paramDouble6)
  {
    return a(paramDouble1, paramDouble2, paramDouble3, paramDouble4, paramDouble5, paramDouble6, false);
  }
  
  public static boolean a(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4, double paramDouble5, double paramDouble6, boolean paramBoolean)
  {
    boolean bool = w.e;
    if (!bool) {
      if (paramBoolean)
      {
        if (((bool) || (paramDouble5 >= paramDouble1)) && ((bool) || (paramDouble5 - paramDouble1 <= paramDouble3)) && ((bool) || (paramDouble6 >= paramDouble2))) {
          if (bool) {}
        }
        return paramDouble6 - paramDouble2 <= paramDouble4;
      }
    }
    if (((bool) || (paramDouble5 >= paramDouble1)) && ((bool) || (paramDouble5 - paramDouble1 < paramDouble3)) && ((bool) || (paramDouble6 >= paramDouble2))) {
      if (bool) {}
    }
    return paramDouble6 - paramDouble2 < paramDouble4;
  }
  
  public boolean a(w paramw)
  {
    return a(paramw.a, paramw.b);
  }
  
  public boolean b(t paramt)
  {
    return a(paramt.d, paramt.e, paramt.a, paramt.b);
  }
  
  public boolean a(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    boolean bool = w.e;
    if ((bool) || (a(paramDouble1, paramDouble2))) {
      if (bool) {}
    }
    return a(paramDouble1 + paramDouble3, paramDouble2 + paramDouble4);
  }
  
  public static boolean a(t paramt1, t paramt2)
  {
    boolean bool = w.e;
    if (((bool) || (paramt1.d + paramt1.a > paramt2.d)) && ((bool) || (paramt1.e + paramt1.b > paramt2.e)) && ((bool) || (paramt1.d < paramt2.d + paramt2.a))) {
      if (bool) {}
    }
    return paramt1.e < paramt2.e + paramt2.b;
  }
  
  public String toString()
  {
    return "[" + this.d + ',' + this.e + ',' + this.a + ',' + this.b + ']';
  }
  
  public int hashCode()
  {
    long l = Double.doubleToLongBits(this.d) >> 1 ^ Double.doubleToLongBits(this.e);
    return super.hashCode() << 1 ^ (int)(l ^ l >> 32);
  }
  
  public boolean equals(Object paramObject)
  {
    boolean bool = w.e;
    if (!bool) {
      if (this == paramObject) {
        return true;
      }
    }
    if (!bool) {
      if (!(paramObject instanceof t)) {
        return false;
      }
    }
    t localt = (t)paramObject;
    if (((bool) || (localt.d == this.d)) && ((bool) || (localt.e == this.e)) && ((bool) || (localt.a == this.a))) {
      if (bool) {}
    }
    return localt.b == this.b;
  }
  
  public int compareTo(Object paramObject)
  {
    boolean bool = w.e;
    t localt = (t)paramObject;
    if (!bool) {
      if (this.d < localt.d) {
        return -1;
      }
    }
    if (!bool) {
      if (this.d > localt.d) {
        return 1;
      }
    }
    if (!bool) {
      if (this.e < localt.e) {
        return -1;
      }
    }
    if (!bool) {
      if (this.e > localt.e) {
        return 1;
      }
    }
    return super.compareTo(paramObject);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.d.t
 * JD-Core Version:    0.7.0.1
 */